<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="http://localhost/themes/admin/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="http://localhost/themes/admin/css/admin.css" type="text/css" rel="stylesheet" />
<script src="http://localhost/assets/js/jquery-1.7.2.min.js" type="text/javascript"></script>
<script src="http://localhost/themes/admin/js/jquery.form.js" type="text/javascript"></script>
<title>银行账单新增修改</title>
</head>

<body>
<div class="formmain">
	<div class="formbox">
		<?php 
		$attributes = array('class' => 'form-horizontal');
		echo form_open('admin/SetBankAccountsPost/'.$Id, $attributes);?>
			  <div class="control-group">
				<label class="control-label" for="input01">银行</label>
				<div class="controls">
				  <?php 
					foreach($Bank->result() as $row)
					{
						$options[$row->Id] = $row->Name;
					}			
					//
					echo form_dropdown('BelongBank', $options, $Id==0 ? set_value('BelongBank'):$oBankAccounts->BelongBank,"id='BelongBank'");
				  //echo form_input('BelongBank', $Id==0 ? set_value('BelongBank'):$oBankAccounts->BelongBank,"placeholder='名称'  class='input-xlarge'");?>
				  <span class="label label-important"><?php echo @$Name_Error;?></span>
				</div>
			  </div>
			  <div class="control-group">
				<label class="control-label" for="input01">金额</label>
				<div class="controls">
				  <?php echo form_input('Sum',$Id==0 ? set_value('Sum'):$oBankAccounts->Sum,"placeholder='金额'  class='input-xlarge'");?>
				  <span class="label label-important"><?php echo @$Sum_Error;?></span>
				</div>
			  </div>
			  <div class="control-group">
				<label class="control-label" for="input01">开始时间</label>
				<div class="controls">
				  <?php echo form_input('StarTime',$Id==0 ? set_value('StarTime'):unix_to_human($oBankAccounts->StarTime),"placeholder='输入时间'  class='input-xlarge'");?>
				  <span class="label label-important"><?php echo @$StarTime_Error;?></span>
				</div>
			  </div>
			  <div class="control-group">
				<label class="control-label" for="input01">结束时间</label>
				<div class="controls">
				  <?php echo form_input('EndTime',$Id==0 ? set_value('EndTime'):unix_to_human($oBankAccounts->EndTime),"placeholder='输入时间'  class='input-xlarge'");?>
				  <span class="label label-important"><?php echo @$EndTime_Error;?></span>
				</div>
			  </div>
			  <div class="form-actions">
				<span class="label label-success"><?php echo @$success;?></span>
				<label></label>
				<button type="submit" class="btn btn-info">确定</button>&nbsp;&nbsp;&nbsp;&nbsp;<a class="tn btn-large btn-primary disabled" href="<?php echo site_url("admin/SetBankAccountsList")?>">列表页面</a>
			  </div>
			  
		  </form>
	</div>
</div>
</body>
</html>